<template>
	<view class="smart-container">
		<view class="smart-panel-title">1.容器</view>
		<view class="smart-panel-h" @click="goDetaiPage('view')"><text>view视图</text></view>
		<view hidden type class="smart-panel-h" @click="goDetaiPage('scroll-view')"><text>scroll-view滚动视图</text></view>
		<view hidden type class="smart-panel-h" @click="goDetaiPage('swipter')"><text>swipter可滑动视图</text></view>
		
		<view class="smart-panel-title">2.基础内容</view>
		<view class="smart-panel-h" @click="goDetaiPage('text')"><text>text文本编辑</text></view>
		<view class="smart-panel-h" @click="goDetaiPage('icon')"><text>icon图标</text></view>
		
		<view class="smart-panel-title">3.表单组件</view>
		<view class="smart-panel-h" @click="goDetaiPage('button')"><text>button按钮</text></view>
		<view class="smart-panel-h" @click="goDetaiPage('checkbox')"><text>checkbox多选框</text></view>
		<view class="smart-panel-h" @click="goDetaiPage('label')"><text>label标签组件</text></view>
		<view class="smart-panel-h" @click="goDetaiPage('input')"><text>input输入框</text></view>
		<view class="smart-panel-h" @click="goDetaiPage('textarea')"><text>textarea多行文本输入框</text></view>
		<view class="smart-panel-h" @click="goDetaiPage('form')"><text>form表单</text></view>
		
		<view class="smart-panel-title">4.导航组件</view>
		<view class="smart-panel-h" @click="goDetaiPage('navigator')"><text>navigator</text></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetaiPage(e){
				if(typeof e === 'string'){
					uni.navigateTo({
						url:'/pages/tabBar/tabcompage/'+ e +'/'+ e
					});
				} else{
					uni.navigateTo({
						url:e.url
					});
				}
			}
		}
	}
</script>

<style>

</style>
